<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once 'base.php';
require_once 'function.php';

/* MENU */
$babBody->addItemMenu("departementAdmin", bab_translate("Departement", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "admin&idx=departementAdmin");
$babBody->addItemMenu("formationAdmin", bab_translate("Formation", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "admin&idx=formationAdmin");
$babBody->addItemMenu("staffAdmin", bab_translate("Staff", $GLOBALS['babAddonFolder']), $GLOBALS['babAddonUrl'] . "admin&idx=staffAdmin");


/* Choix de l'affichage */
$idx = bab_rp('idx','departementAdmin');

switch ($idx) {
    case "departementAdmin":
        include_once 'departementAdmin.php';
        break;
    case "formationAdmin":
        include_once 'formationAdmin.php';
        break;
    case "staffAdmin":
        include_once 'staffAdmin.php';
        break;
    case "studentAdmin":
        include_once 'studentAdmin.php';
        break;
}
/**
 * Affichage en gras de l'onglet actuel
 */
    $babBody->setCurrentItemMenu($idx);

?>
